package top.ffhome.common.audit;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 审计类方法的注解<br/>
 * 必须与AuditService一起使用才生效
 * 
 * @author John
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Inherited
public @interface AuditOperation {

	public static final int INSERT = 1;
	public static final int UPDATE = 2;
	public static final int DELETE = 3;

	/**
	 * 类型
	 * 
	 * @return
	 */
	int type() default INSERT;
}
